// Default.cs
//

namespace ServiceAdmin.Status
{
	using ServiceAdmin;
	using ServiceAdmin.Config;
	using System.ServiceProcess;

	public class Default : ServiceStatus
	{
		public override string ImagePath
		{
			get { return OptionHandler.Instance.ImagePath + "all.ico"; }
		}


		public override string StatusDescription
		{
			get { return OptionHandler.Instance.GetLanguageRes("Default"); }
		}


		public Default(StatusCollection statusCollection) : base(ServiceControllerStatus.ContinuePending, statusCollection)
		{
		}


		public override void OnActivate()
		{
			_statusCollection.Handler.StartButton.Enabled = false;
			_statusCollection.Handler.ResetButton.Enabled = false;
			_statusCollection.Handler.StopButton.Enabled = false;

			UpdateTaskIcon();
		}
	}
}